Updated my rails 2.3.2 now getting > undefined method `inject' for true:TrueClass

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mitchell Gould
    New Member
    • Sep 2010
    • 2

    Updated my rails 2.3.2 now getting > undefined method `inject' for true:TrueClass

    I just update my RubyGems and Rails. I am working on Rails 2.3.2 and everything was working prior to this update.

    Now I am getting the following error:

    undefined method `inject' for true:TrueClass

    I have no idea what this means or where it is coming from. It does not seem to matter what I delete or which page I try to load on the website.

    The full trace is as follows:

    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:206:i n `deep_symbolize _keys'
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:197:i n `merge_translat ions'
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:177:i n `load_file'
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:177:i n `each'
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:177:i n `load_file'
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:13:in `load_translati ons'
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:13:in `each'
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:13:in `load_translati ons'
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:85:in `init_translati ons'
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:100:i n `lookup'
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:33:in `translate'
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb:165:in `translate'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/translation.rb: 4:in `t'
    /Users/mitch/railsprojects/gould_developme nt/app/controllers/public_controll er.rb:7:in `home'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/base.rb:1322:in `send'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/base.rb:1322:in `perform_action _without_filter s'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/filters.rb:617: in `call_filters'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/filters.rb:610: in `perform_action _without_benchm ark'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/benchmarking.rb :68:in `perform_action _without_rescue '
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17 :in `ms'
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:10 :in `realtime'
    /Users/mitch/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17 :in `ms'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/benchmarking.rb :68:in `perform_action _without_rescue '
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/rescue.rb:160:i n `perform_action _without_flash'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/flash.rb:141:in `perform_action '
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/base.rb:523:in `send'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/base.rb:523:in `process_withou t_filters'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/filters.rb:606: in `process'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/base.rb:391:in `process'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/base.rb:386:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/routing/route_set.rb:43 3:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/dispatcher.rb:8 8:in `dispatch'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/dispatcher.rb:1 11:in `_call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/dispatcher.rb:8 2:in `initialize'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/vendor/rack-1.0/rack/head.rb:9:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/vendor/rack-1.0/rack/head.rb:9:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/vendor/rack-1.0/rack/methodoverride. rb:24:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/params_parser.r b:15:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/rewindable_inpu t.rb:25:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/session/abstract_store. rb:122:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb: 29:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adap ters/abstract/query_cache.rb: 34:in `cache'
    /Users/mitch/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb: 9:in `cache'
    /Users/mitch/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb: 28:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adap ters/abstract/connection_pool .rb:361:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/reloader.rb:9:i n `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/failsafe.rb:11: in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/vendor/rack-1.0/rack/lock.rb:11:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/vendor/rack-1.0/rack/lock.rb:11:in `synchronize'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/vendor/rack-1.0/rack/lock.rb:11:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/dispatcher.rb:1 06:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/rails-2.3.2/lib/rails/rack/static.rb:31:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/vendor/rack-1.0/rack/urlmap.rb:46:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/vendor/rack-1.0/rack/urlmap.rb:40:in `each'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/vendor/rack-1.0/rack/urlmap.rb:40:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/rails-2.3.2/lib/rails/rack/log_tailer.rb:1 7:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/vendor/rack-1.0/rack/content_length. rb:13:in `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/vendor/rack-1.0/rack/chunked.rb:15:i n `call'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/vendor/rack-1.0/rack/handler/mongrel.rb:61:i n `process'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159: in `process_client '
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158: in `each'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158: in `process_client '
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285: in `run'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285: in `initialize'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285: in `new'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285: in `run'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268: in `initialize'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268: in `new'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268: in `run'
    /Users/mitch/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controll er/vendor/rack-1.0/rack/handler/mongrel.rb:34:i n `run'
    /Users/mitch/.gem/ruby/1.8/gems/rails-2.3.2/lib/commands/server.rb:111
    /Library/Ruby/Site/1.8/rubygems/custom_require. rb:31:in `gem_original_r equire'
    /Library/Ruby/Site/1.8/rubygems/custom_require. rb:31:in `require'
    script/server:3
  • improvcornartist
    Recognized Expert Contributor
    • May 2007
    • 303

    #2
    What does your code look like around public_controll er.rb, line 7?

    Comment

    • Mitchell Gould
      New Member
      • Sep 2010
      • 2

      #3
      class PublicControlle r < ApplicationCont roller

      before_filter :authorized_lis t,:news_item

      # Displays the home page
      def home
      line 7> @pageTitle = t 'home.title'
      end

      Comment

      • improvcornartist
        Recognized Expert Contributor
        • May 2007
        • 303

        #4
        Looks like the error then is in trying to translate 'home'. Do you know exactly what is being passed to 't' and what 't' is expected to do?

        Comment

        Working...